﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient;
namespace OAWeb
{
    public partial class m_MeetingDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            m_Meeting m = new m_Meeting();
            SqlDataReader dr = m.myDataReader("select * from vw_meetinginroom where mid=" + Request["mid"]);
            if(dr.Read())
            {
                lblTitle.Text = dr["mTitle"].ToString();
                lblSTime.Text = dr["mInTime"].ToString();
                lblETime.Text = dr["mOutTime"].ToString();
                lblJoiners.Text = dr["mJoiners"].ToString();
                lblMasters.Text = dr["mMasters"].ToString();
                lblRecorders.Text = dr["mRecorders"].ToString();
                lblContent.Text = dr["mContent"].ToString();
                lblRoom.Text = dr["roomname"].ToString();
                
            }

            SqlDataReader drFile = m.myDataReader("select * from m_uploadfile where mid=" + Request["mid"]);
            while (drFile.Read())
            {
                Literal1.Text = Literal1.Text + "<br/><a href='/uploadfile/" + drFile[3] + "' target='_blank'>" + drFile[2] + "</a>";
            }

         
        }
    }
}
